package com.thinkPro.train.action.attendance;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.thinkPro.train.bean.attendance.AttendRecord;
import com.thinkPro.train.db.util.AttendanceUtil;


@SuppressWarnings("serial")
public class SaveAttendRecord extends ActionSupport {
	AttendRecord attendRecord = new AttendRecord();
	List<AttendRecord> attendRecordList;

	public String execute() {
		System.out.println("进入保存action");
		System.out.println("员工id" + attendRecordList.toString());
		AttendanceUtil attendanceUtil = new AttendanceUtil();
		attendanceUtil.addAttendRecord(attendRecordList);
		return SUCCESS;
	}

	public AttendRecord getAttendRecord() {
		return attendRecord;
	}

	public void setAttendRecord(AttendRecord attendRecord) {
		this.attendRecord = attendRecord;
	}

	public List<AttendRecord> getAttendRecordList() {
		return attendRecordList;
	}

	public void setAttendRecordList(List<AttendRecord> attendRecordList) {
		this.attendRecordList = attendRecordList;
	}

}
